import { request } from '../utils/request'

// 我的页
export const getMyDataAPI = (data) => {
	return request({
		method: 'POST',
		url: 'center',
		data
	})
}

// 佣金明细列表
export const getMycommrecordListAPI = (data) => {
	return request({
		method: 'POST',
		url: 'mycommrecord',
		data
	})
}

// 提现明细列表
export const getWithdrawListAPI = (mid) => {
	return request({
		url: `records?mid=${mid}`
	})
}

// 提现
export const withdrawAPI = (data) => {
	return request({
		method: 'POST',
		url: 'withdraw',
		data
	})
}